<html>
<head>
<title>HTML_Progress_UI::getStyle</title>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
    <td class="header_top">HTML_Progress</td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td class="header_menu">
  		  [ <a href="../classtrees_HTML_Progress.html" class="menu">class tree: HTML_Progress</a> ]
		  [ <a href="../elementindex_HTML_Progress.html" class="menu">index: HTML_Progress</a> ]
		  [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10%" align="left" valign="bottom"><a href=
"../HTML_Progress/tutorial_ui.setscript.pkg.html">Prev</a></td>
<td width="80%" align="center" valign="bottom"></td>
<td width="10%" align="right" valign="bottom"><a href=
"../HTML_Progress/tutorial_ui.drawcirclesegments.pkg.html">Next</a></td>
</tr>
</table>
<div><a name=""></a><div class="ref-title-box"><div class="ref-title"><span class="function">HTML_Progress_UI::getStyle</span></div>
  <div class="ref-purpose">returns instance of HTML_CSS object</div></div>

 <span><a name="synopsis"></a><h2 class="title">Synopsis</h2><div class="ref-synopsis"><p class="func-synopsis">require_once 'HTML/Progress/UI.php';</p>
   string &amp;<span class="function">HTML_Progress_UI::getStyle</span>()</div></span>

 <span><a name="description"></a><h2 class="title">Description</h2><p>This method is used to retrieve the cascading style sheet required to run properly 
   the progress meter.</p></span>

 <span><a name="note"></a><h2 class="title">Note</h2>( HTML_Progress &gt;= 0.2, HTML_CSS )<br />
  <p><table class="note"><tr><td class="note_img"><img src="../media/important.png"></td><td class="note_text">This function can not be called statically.</td></tr></table></p>
  <p><table class="note"><tr><td class="note_img"><img src="../media/note.png"></td><td class="note_text">You can also call the HTML_Progress::getStyle method, that will retrieve the same
    style sheet in plain text (all styles prefixed by the progress meter identification class).</td></tr></table></p></span>

 <span><a name="see"></a><h2 class="title">See</h2><p><a href="../HTML_Progress/tutorial_ui.getprogressattributes.pkg.html">HTML_Progress_UI::getProgressAttributes</a>, 
   <a href="../HTML_Progress/tutorial_ui.getborderattributes.pkg.html">HTML_Progress_UI::getBorderAttributes</a>,
   <a href="../HTML_Progress/tutorial_ui.getstringattributes.pkg.html">HTML_Progress_UI::getStringAttributes</a>,
   <a href="../HTML_Progress/tutorial_ui.getcellattributes.pkg.html">HTML_Progress_UI::getCellAttributes</a></p></span>

 <span><a name="example"></a><h2 class="title">Example</h2><p>Example below will print inline cascading style sheet of a default progress bar.<br />
   <p><div class="listing"><pre><ol><li><span class="src-php">&lt;?php</span></li>
<li><span class="src-inc">require_once </span><span class="src-str">'HTML/Progress.php'</span><span class="src-sym">;</span></li>
<li>&nbsp;</li>
<li><span class="src-var">$bar </span>= <span class="src-key">new </span><span class="src-id"><a href="../HTML_Progress/HTML_Progress.html">HTML_Progress</a></span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li>&nbsp;</li>
<li><span class="src-var">$ui </span>=<span class="src-sym">&amp; </span><span class="src-var">$bar</span><span class="src-sym">-&gt;</span><span class="src-id">getUI</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><span class="src-var">$css </span>=<span class="src-sym">&amp; </span><span class="src-var">$ui</span><span class="src-sym">-&gt;</span><a href="../HTML_Progress/Progress_UI/HTML_Progress_UI.html#methodgetStyle">getStyle</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li>&nbsp;</li>
<li>print <span class="src-str">'&lt;pre&gt;'</span><span class="src-sym">;</span></li>
<li>echo <span class="src-str">'&lt;h1&gt;object&lt;/h1&gt;'</span><span class="src-sym">;</span></li>
<li><a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$css</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li>echo <span class="src-str">'&lt;h1&gt;plain text&lt;/h1&gt;&lt;br/&gt;'</span><span class="src-sym">;</span></li>
<li><a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$css</span><span class="src-sym">-&gt;</span><span class="src-id">toString</span><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></li>
<li>print <span class="src-str">'&lt;/pre&gt;'</span><span class="src-sym">;</span></li>
<li><span class="src-php">?&gt;</span></li>
</ol></pre></div></p></p></span></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" align="left" valign="top"><a href="../HTML_Progress/tutorial_ui.setscript.pkg.html">Prev</a></td>
<td width="34%" align="center" valign="top"><a href=
"../HTML_Progress/tutorial_part3-reference.pkg.html">Up</a></td>
<td width="33%" align="right" valign="top"><a href=
"../HTML_Progress/tutorial_ui.drawcirclesegments.pkg.html">Next</a></td>
</tr>

<tr>
<td width="33%" align="left" valign="top"><span class="function">HTML_Progress_UI::setScript</span></td>
<td width="34%" align="center" valign="top">Reference Guide</td>
<td width="33%" align="right" valign="top"><span class="function">HTML_Progress_UI::drawCircleSegments</span></td>
</tr>
</table>
        <div class="credit">
		    <hr />
		    Documentation generated on Sun, 12 Sep 2004 20:23:31 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>